var paginationUrl_ = 'trade/search/searchAction.do';
var targetDivObj_ = null;

function pagination(formName,targetName,pageNo){
	targetDivObj_ = targetName;
	targetDivObj_.innerHTML="loading...";
	dojo.xhrPost({
		url: paginationUrl_+"?formName="+targetName.id+"&targetDivName="+targetName.id+"&pageNo="+pageNo,		
		load: handCallback,
		error: handleError,
		form: formName,
		handleAs:'text'		
	});
}

function handCallback(data,ioArgs){
	targetDivObj_.innerHTML=data;
}
function handleError(data,ioArgs){
	alert(data);
}